{% extends 'TopxiaWebBundle:Group:layout.html.twig' %}
{% block title %}论坛 {{ parent() }}{% endblock %}
{% block content %}
  <div class="row">
    <div class="col-md-8">
      <div class="panel panel-default">
        <div class="panel-heading">
          热门论坛
          <a href="{{path('group_search_group')}}" class="more"><i class="es-icon es-icon-morehoriz"></i></a>
        </div>
        <div class="panel-body">
          <div class="row group-grids">
            {% for group in activeGroup %}
              <div class="col-lg-2 col-md-2 col-sm-2 col-xs-4 grid">
                <p>
                  <a href="{{path('group_show',{id:group.id})}}" title="{{group.title}}">
                    <img src="{{filepath(group.logo, 'group.png')}}" alt="{{group.title}}" class="avatar-square-sm">
                  </a>
                </p>
                <p class="title"><a class="link-light" href="{{path('group_show',{id:group.id})}}" title="{{group.title}}" >{{group.title}}</a></p>
              </div>
            {% else %}
              <div class="empty">暂无论坛信息！</div>
            {% endfor %}
          </div>
        </div>
      </div>
    </div>
  </div>
{% endblock %}
